import { App } from '@vue/runtime-dom'
import { ElMessage } from 'element-plus'

export const $newmessage = function (message:any, type:any) {
  ElMessage({
    message,
    type,
    duration: 1000
  })
}

export const install = function (app: App) {
  app.provide('$newmessage', $newmessage)
}
